﻿using System;

namespace Sharp.DataTransferObject.Workflow
{
    /// <summary>
    /// 任务实体对象
    /// </summary>
    [Serializable]
    public class TaskDTO 
    {
        
        
        
        public int Id { get; set; }

        
        
        public int ActivityInstanceID { get; set; }

        
        
        public int ProcessInstanceID { get; set; }

        
        
        
        public string AppName { get; set; }

        
        
        
        public string AppInstanceID { get; set; }

        
        
        
        public string ProcessGUID { get; set; }

        
        
        
        public string ActivityGUID { get; set; }

        
        
        
        public string ActivityName { get; set; }

        
        
        public byte TaskType { get; set; }

        
        
        public short TaskState { get; set; }

        
        public Nullable<int> EntrustedTaskID { get; set; }        //被委托任务ID

        
        
        
        public string AssignedToUserID { get; set; }

        
        
        
        public string AssignedToUserName { get; set; }

        
        
        
        public int? CreatedUserId { get; set; }

        
        
        
        public string CreatedUserName { get; set; }

        
        
        public System.DateTime? CreatedTime { get; set; }

        
        public Nullable<System.DateTime> ModifiTime { get; set; }

        
        
        public string ModifiedUserId { get; set; }

        
        
        public string LastUpdatedByUserName { get; set; }

        
        
        public string EndedByUserID { get; set; }

        
        
        public string EndedByUserName { get; set; }

        
        public DateTime? EndedDateTime { get; set; }

        
        
        public byte RecordStatusInvalid { get; set; }

        
        
        

        public ActivityInstanceDTO ActivityInstance{ get; set; }
        public ProcessInstanceDTO ProcessInstance  { get; set; }
    }
}
